<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title>テーマ一覧</title>
		<script language="JavaScript">
		function submitFormWithThemeId(id) {
			themeForm.themeId.value=id;
			return true;
		}

		function submitFormWithThemeIdForTarget(id,tid) {
			themeForm.themeId.value=id;
			themeForm.targetId.value=tid;
			return true;
		}

		function submitFormWithThemeIdForTargetReview(id,tid,rid) {
			themeForm.themeId.value=id;
			themeForm.targetId.value=tid;
			themeForm.reviewId.value=rid;
			return true;
		}
		
		</script>
    </head>

<body>
	<s:form name="themeForm" method="POST" action="themeList" theme="simple">
		<s:hidden name="themeId"/>
		<s:hidden name="targetId"/>
		<s:hidden name="reviewId"/>
		プロジェクト：<s:select cssClass="btn_1" size="1" name="projectId"  label="プロジェクト" list="projectList" listKey="projectId" listValue="projectName"></s:select>
		<s:submit cssClass="btn_1" action="themeList!doList" name="buttonId" value="一覧表示" btnId="B001"/>
		<s:submit cssClass="btn_1" action="themeList!doAdd" name="buttonId" value="テーマ追加" btnId="B002"/><br>
		<hr>
			<s:if test="%{themeList.size()!=0}">
<%-- テーマ一覧レイアウト --%>
				<table class="theme_list" width="100%" cellspacing="0">
					<tr>
						<th width="20%">テーマ名</th>
						<th width="10%">テーマ開始日</th>
						<th width="10%">テーマ終了日</th>
						<th width="10%">テーマ状態</th>
						<th width="20%">テーマ情報</th>
						<th width="30%">操作</th>
					</tr>
				<s:iterator value="themeList" status="rowstatus" id="list">
				<s:if test="#rowstatus.odd==true">
					<s:set name="themeListStyle" value=""/>
				</s:if>
				<s:else>
					<s:set name="themeListStyle" value="'alt'"/>
				</s:else>
					<s:hidden name="themeList[%{#rowstatus.index}].themeId" value="%{#list.themeId}"/>
					<s:if test="#list.editFlag==1">
					<%-- テーマ一覧編集モード --%>
						<tr>
							<td class="edit"><s:textfield cssClass="txt_1" size="20" maxlength="50" name="themeList[%{#rowstatus.index}].themeName" /></td>
							<td class="edit"><s:textfield cssClass="txt_1" size="10" maxlength="10" name="themeList[%{#rowstatus.index}].themeStartDt" /></td>
							<td class="edit"><s:textfield cssClass="txt_1"  size="10" maxlength="10" name="themeList[%{#rowstatus.index}].themeEndDt"/></td>
							<td class="edit"><s:select  cssClass="txt_1"  size="1" name="themeList[%{#rowstatus.index}].themeStatus" list="themeStatusList" listKey="code" listValue="value"/></td>
							<td class="edit"><s:textfield  cssClass="txt_1" size="20" maxlength="50" name="themeList[%{#rowstatus.index}].themeInfo"  /></td>
							<td class="edit">
								<s:submit btnId="B013" cssClass="btn_2" name="buttonId" value="更新" action="themeList!doUpdate" onclick="javascript:submitFormWithThemeId(%{#list.themeId});"/>
								<s:submit btnId="B014" cssClass="btn_2" name="buttonId" value="取消" action="themeList!doList" />
							</td>
						</tr>			
					</s:if>				
					<s:else>
					<%-- テーマ一覧表示モード --%>
						<tr>
							<td style="border-left: 1px solid #C1DAD7;" class="<s:property value="#themeListStyle" />"><s:property value="themeName" /></td>
							<td class="<s:property value="#themeListStyle" />"><s:property value="themeStartDt" />&nbsp;</td>
							<td class="<s:property value="#themeListStyle" />"><s:property value="themeEndDt" />&nbsp;</td>
							<td class="<s:property value="#themeListStyle" />"><s:select  cssClass="txt_0" disabled="true" size="1" name="list.themeStatus" value="%{#list.themeStatus}" list="themeStatusList" listKey="code" listValue="value"/></td>
							<td class="<s:property value="#themeListStyle" />"><s:property value="themeInfo"/>&nbsp;</td>
							<td class="<s:property value="#themeListStyle" />">
								<s:submit btnId="B003" cssClass="btn_1" name="buttonId" value="編集" action="themeList!doEdit" onclick="javascript:submitFormWithThemeId(%{#list.themeId});"/>
								<s:submit btnId="B004" cssClass="btn_1" name="buttonId" value="削除" action="themeList!doDelete" onclick="javascript:submitFormWithThemeId(%{#list.themeId});"/>
								<s:submit btnId="xx" cssClass="btn_2" name="buttonId" value="導出" action="themeList!doTargetReviewExport" onclick="javascript:submitFormWithThemeId(%{#list.themeId});"/>
								<s:if test="#list.mode!=1">
									<s:submit btnId="B006" cssClass="btn_1" name="buttonId" value="作業一覧" action="themeList!doTargetList" onclick="javascript:submitFormWithThemeId(%{#list.themeId});"/>
								</s:if>
								<s:else>
									<s:submit btnId="B005" cssClass="btn_2" name="buttonId" value="作業追加" action="themeList!doTargetAdd" onclick="javascript:submitFormWithThemeId(%{#list.themeId});"/>
									<s:submit btnId="B007" cssClass="btn_2" name="buttonId" value="作業一覧閉じる" action="themeList!doTargetListClose" onclick="javascript:submitFormWithThemeId(%{#list.themeId});"/>
								</s:else>
							</td>
						</tr>
						<s:if test="#list.mode==1">
							<tr>
								<td colspan="6" style="border-left: 1px solid #C1DAD7;">
									<%-- 作業一覧レイアウト --%>
									<table class="theme_list_sub" width="98%" align="right"  cellspacing="0">
										<tr>
											<th width="6%">区分</th>
											<th width="20%">作業内容</th>
											<th width="8%">開始日</th>
											<th width="8%">終了日</th>
											<th width="6%">担当者</th>
											<th width="6%">ＲＶ者</th>
											<th width="6%">進捗</th>
											<th width="5%">工数</th>
											<th width="5%">見積</th>											
											<th width="10%">ステータス</th>
											<th width="20%">操作</th>
										</tr>
									<s:iterator value="targetList" status="rowstatus2" id="list2">
									<s:if test="#rowstatus2.odd==true">
										<s:set name="targetListStyle" value=""/>
									</s:if>
									<s:else>
										<s:set name="targetListStyle" value="'alt'"/>
									</s:else>
										<s:hidden name="targetList[%{#rowstatus2.index}].targetId" value="%{#list2.targetId}"/>
										<s:if test="#list2.mode==1">
											<%-- 作業一覧編集モード --%>
											<tr>
												<td  class="edit" style="border-left: 1px solid #C1DAD7;" ><s:select  cssClass="txt_1" size="1" name="targetList[%{#rowstatus2.index}].targetType" list="targetTypeList" listKey="code" listValue="value"/></td>
												<td  class="edit"><s:textfield  cssClass="txt_1" size="25" maxlength="100" name="targetList[%{#rowstatus2.index}].targetName" /></td>
												<td class="edit"><s:textfield cssClass="txt_1" size="10" maxlength="10" name="targetList[%{#rowstatus2.index}].targetStartDt" /></td>
												<td class="edit"><s:textfield cssClass="txt_1" size="10" maxlength="10" name="targetList[%{#rowstatus2.index}].targetEndDt" /></td>
												<td class="edit"><s:select  cssClass="txt_1" size="1"name="targetList[%{#rowstatus2.index}].targetUserId" list="userList" listKey="userId" listValue="userDispName"/></td>
												<td class="edit"><s:select  cssClass="txt_1" size="1"name="targetList[%{#rowstatus2.index}].targetRvUserId" list="userList" listKey="userId" listValue="userDispName"/></td>
												<td class="edit"><s:property value="%{#list2.targetProgress}"/>%</td>
												<td class="edit"><s:textfield cssClass="txt_1" size="5" maxlength="5" name="targetList[%{#rowstatus2.index}].targetCost1" /></td>
												<td class="edit"><s:textfield  cssClass="txt_1"size="5" maxlength="5" name="targetList[%{#rowstatus2.index}].targetCost2" /></td>
												<td class="edit"><s:select  cssClass="txt_1" size="1" name="targetList[%{#rowstatus2.index}].targetStatus" list="targetStatusList" listKey="code" listValue="value"/></td>
												<td class="edit" >
													<s:submit btnId="B015" cssClass="btn_2" name="buttonId" value="更新" action="themeList!doTargetUpdate" onclick="javascript:submitFormWithThemeIdForTarget(%{#list.themeId},%{#list2.targetId});"/>
													<s:submit btnId="B016" cssClass="btn_2" name="buttonId" value="取消" action="themeList!doTargetList" onclick="javascript:submitFormWithThemeId(%{#list.themeId});"/>
												</td>
											</tr>
										</s:if>
										<s:else>
											<%-- 作業一覧表示モード --%>
											<tr>
												<td class="<s:property value="#targetListStyle" />" style="border-left: 1px solid #C1DAD7;"><s:select cssClass="txt_0"  disabled="true" size="1" name="list2.targetType" value="%{#list2.targetType}" list="targetTypeList" listKey="code" listValue="value"/></td>
												<td class="<s:property value="#targetListStyle" />"  ><s:property value="targetName" /></td>
												<td  class="<s:property value="#targetListStyle" />" ><s:property value="targetStartDt" /></td>
												<td class="<s:property value="#targetListStyle" />" ><s:property value="targetEndDt" /></td>
												<td class="<s:property value="#targetListStyle" />" ><s:select   cssClass="txt_0" disabled="true" size="1" name="list2.targetUserId" value="%{#list2.targetUserId}" list="userList" listKey="userId" listValue="userDispName"/></td>
												<td  class="<s:property value="#targetListStyle" />" ><s:select  cssClass="txt_0"  disabled="true" size="1" name="list2.targetRvUserId" value="%{#list2.targetRvUserId}" list="userList" listKey="userId" listValue="userDispName"/></td>
												<td class="<s:property value="#targetListStyle" />" ><s:property value="%{#list2.targetProgress}"/>%</td>
												<td class="<s:property value="#targetListStyle" />" ><s:property value="targetCost1" /></td>
												<td class="<s:property value="#targetListStyle" />" ><s:property value="targetCost2" /></td>
												<td class="<s:property value="#targetListStyle" />" ><s:select  cssClass="txt_0"  disabled="true" size="1" name="list2.targetStatus" value="%{#list2.targetStatus}" list="targetStatusList" listKey="code" listValue="value"/></td>
												<td class="<s:property value="#targetListStyle" />" >
													<s:submit btnId="B008" cssClass="btn_2" name="buttonId" value="変更" action="themeList!doTargetEdit" onclick="javascript:submitFormWithThemeIdForTarget(%{#list.themeId},%{#list2.targetId});"/>
													<s:submit btnId="B009" cssClass="btn_2" name="buttonId" value="進捗" action="themeList!doTargetProgressList" onclick="javascript:submitFormWithThemeIdForTarget(%{#list.themeId},%{#list2.targetId});"/>
													<s:submit btnId="B010" cssClass="btn_2" name="buttonId" value="RV" action="themeList!doReviewList" onclick="javascript:submitFormWithThemeIdForTarget(%{#list.themeId},%{#list2.targetId});"/>
													<s:submit btnId="B011" cssClass="btn_2" name="buttonId" value="承認" action="themeList!doTargetConfirm" onclick="javascript:submitFormWithThemeId(%{#list.themeId});"/>
													<s:submit btnId="B019" cssClass="btn_2" name="buttonId" value="削除" action="themeList!doTargetDelete" onclick="javascript:submitFormWithThemeIdForTarget(%{#list.themeId},%{#list2.targetId});"/>
												</td>
											</tr>
										<s:if test="#list2.mode==2">
											<%-- 進捗レイアウト --%>
											<tr>
												<td colspan="11" style="border-left: 1px solid #C1DAD7;">
													<table class="theme_list_sub" width="98%" align="right"  cellspacing="0">
														<tr>
															<th class="sub" width="10%">日付</th>
															<th class="sub" width="10%">進捗率</th>
															<th class="sub" width="10%">変更者</th>
															<th class="sub" width="50%">備考</th>
															<th class="sub" width="20%">操作</th>
														</tr>
														<s:iterator value="%{#list2.progressList}" status="rowstatus3" id="list3">
														<s:if test="#rowstatus3.odd==true">
															<s:set name="processListStyle" value=""/>
														</s:if>
														<s:else>
															<s:set name="processListStyle" value="'alt'"/>
														</s:else>
														<%-- 進捗表示 --%>
														<tr>
															<td  class="<s:property value="#processListStyle" />" style="border-left: 1px solid #C1DAD7;" class="sub"><s:property value="pgsTs" /></td>
															<td class="<s:property value="#processListStyle" />"  ><s:property value="pgsValue" /></td>
															<td  class="<s:property value="#processListStyle" />" ><s:select  cssClass="txt_0" disabled="true" size="1"name="targetList[%{#rowstatus2.index}].progressList[%{#rowstatus3.index}].pgsUserId" list="userList" listKey="userId" listValue="userDispName"/></td>
															<td  class="<s:property value="#processListStyle" />"><s:property value="pgsInfo" /></td>
															<td  class="<s:property value="#processListStyle" />">&nbsp;</td>
														</tr>														
														</s:iterator>
														<%-- 進捗変更 --%>
														<tr>
															<td style="border-left: 1px solid #C1DAD7;" class="edit"><s:property value="addProgressValue.pgsTs" /></td>
															<td class="edit"><s:textfield cssClass="txt_1"  size="10" maxlength="10" name="addProgressValue.pgsValue" /></td>
															<td class="edit"><s:select cssClass="txt_1"  disabled="true" size="1"name="addProgressValue.pgsUserId" list="userList" listKey="userId" listValue="userDispName"/></td>
															<td class="edit"><s:textfield  cssClass="txt_1" size="50" maxlength="200" name="addProgressValue.pgsInfo" /></td>
															<td class="edit"><s:submit cssClass="btn_2" name="buttonId" value="登録" action="themeList!doTargetProgressInsert" onclick="javascript:submitFormWithThemeIdForTarget(%{#list.themeId},%{#list2.targetId});"/>
																			<s:submit cssClass="btn_2" name="buttonId" value="閉じる" action="themeList!doTargetList" onclick="javascript:submitFormWithThemeId(%{#list.themeId});"/>
															</td>
														</tr>	
													</table>
												</td>
											</tr>
										</s:if>
										<s:if test="#list2.mode==3">
											<%-- レビューレイアウト --%>
											<tr>
												<td style="border-left: 1px solid #C1DAD7;" colspan="11">
													<table class="theme_list_sub" width="98%" align="right" cellspacing="0">
														<tr>
															<th style="border-left: 1px solid #C1DAD7;" class="sub" width="7%">実施日</th>
															<th class="sub" width="7%">ＲＶ者</th>
															<th class="sub" width="6%">サイクル</th>
															<th rowspan="2" class="sub" width="34%">内容</th>
															<th rowspan="2" class="sub" width="18%">対応</th>
															<th class="sub" width="9%">対応者</th>
															<th class="sub" width="9%">承認者</th>
															<th rowspan="2" colspan="2" class="sub" width="10%">操作<br>
															<s:submit btnId="xx" cssClass="btn_2" name="buttonId" value="新規" action="themeList!doTargetReviewAdd" onclick="javascript:submitFormWithThemeIdForTarget(%{#list.themeId},%{#list2.targetId});"/>
															<s:submit cssClass="btn_2" name="buttonId" value="閉じる" action="themeList!doTargetList" onclick="javascript:submitFormWithThemeId(%{#list.themeId});"/>	
															</th>
														</tr>
														<tr>															
															<th style="border-left: 1px solid #C1DAD7;" class="sub" width="6%">予定日</th>
															<th class="sub" colspan="2" width="12%">類別</th>
															<th class="sub" width="6%">対応日</th>
															<th class="sub" width="6%">承認日</th>
														</tr>
														<s:iterator value="%{#list2.reviewList}" status="rowstatus4" id="list4">
														<s:if test="#rowstatus4.odd==true">
															<s:set name="reviewListStyle" value=""/>
														</s:if>
														<s:else>
															<s:set name="reviewListStyle" value="'alt'"/>
														</s:else>
														<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewId" />
														<%-- レビュー表示 --%>
														<s:if test="#list4.mode==0">
														<%-- 表示レイアウト --%>
														<tr>
															<td   class="<s:property value="#reviewListStyle" />" style="border-left: 1px solid #C1DAD7;" ><s:property value="reviewCreateDate" /></td>
															<td   class="<s:property value="#reviewListStyle" />" ><s:select  cssClass="txt_0"  disabled="true" size="1" name="reviewUserId" list="userList" listKey="userId" listValue="userDispName"/></td>
															<td   class="<s:property value="#reviewListStyle" />" ><s:property value="reviewCycle" /></td>
															<td rowspan="2"   class="<s:property value="#reviewListStyle" />" ><s:property value="reviewDetail" />&nbsp;</td>
															<td rowspan="2"    class="<s:property value="#reviewListStyle" />" ><s:property value="reviewSolveDetail" />&nbsp;</td>
															<td    class="<s:property value="#reviewListStyle" />" ><s:select  cssClass="txt_0"  disabled="true" size="1" name="list4.reviewSolveUserId" value="%{#list4.reviewSolveUserId}" list="userList" listKey="userId" listValue="userDispName"/></td>
															<td    class="<s:property value="#reviewListStyle" />" >
															<s:if test="#list4.reviewAdmitUserId!=-1">
															<s:select  cssClass="txt_0"  disabled="true" size="1" name="list4.reviewAdmitUserId" value="%{#list4.reviewAdmitUserId}" list="userList" listKey="userId" listValue="userDispName"/>
															</s:if>&nbsp;
															</td>
															<td colspan="2" rowspan="2"    class="<s:property value="#reviewListStyle" />" >
																
																<s:submit btnId="xx" cssClass="btn_2" name="buttonId" value="修正" action="themeList!doTargetReviewEdit1" onclick="javascript:submitFormWithThemeIdForTargetReview(%{#list.themeId},%{#list2.targetId},%{#list4.reviewId});"/>
																<s:submit btnId="xx" cssClass="btn_2" name="buttonId" value="対応" action="themeList!doTargetReviewEdit2" onclick="javascript:submitFormWithThemeIdForTargetReview(%{#list.themeId},%{#list2.targetId},%{#list4.reviewId});"/>
																<p>
																<s:submit btnId="xx" cssClass="btn_2" name="buttonId" value="承認" action="themeList!doTargetReviewAdmit" onclick="javascript:submitFormWithThemeIdForTargetReview(%{#list.themeId},%{#list2.targetId},%{#list4.reviewId});"/>
																<s:submit btnId="xx" cssClass="btn_2" name="buttonId" value="削除" action="themeList!doTargetReviewDelete" onclick="javascript:submitFormWithThemeIdForTargetReview(%{#list.themeId},%{#list2.targetId},%{#list4.reviewId});"/>
															</td>
														</tr>
														<tr>
															<td style="border-left: 1px solid #C1DAD7;"   class="<s:property value="#reviewListStyle" />" ><s:property value="reviewExpectDate" />&nbsp;</td>	
															<td colspan="2"    class="<s:property value="#reviewListStyle" />" ><s:select  disabled="true" size="1" name="list4.reviewType" value="%{#list4.reviewType}" list="reviewTypeList" listKey="code" listValue="value"/></td>
															<td    class="<s:property value="#reviewListStyle" />" ><s:property value="reviewSolveDate" />&nbsp;</td>
															<td    class="<s:property value="#reviewListStyle" />" ><s:property value="reviewAdmitDate" />&nbsp;</td>
														</tr>
														</s:if>
														<s:elseif test="#list4.mode==1">
														<%-- 修正レイアウト --%>
														<tr>
															<td style="border-left: 1px solid #C1DAD7;"  class="edit"><s:textfield cssClass="txt_1"  size="7" maxlength="10" name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewCreateDate" /></td>
															<td class="edit">
																<s:select  disabled="true" cssClass="txt_0"  size="1" name="addReviewValue.reviewUserId" value="%{#addReviewValue.reviewUserId}" list="userList" listKey="userId" listValue="userDispName"/>
																<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewUserId"/>
															</td>
															<td class="edit"><s:textfield  cssClass="txt_1" size="4" maxlength="10" name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewCycle" /></td>
															<td rowspan="2" class="edit"><s:textarea cssClass="txt_2"  cols="49" rows="3" name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewDetail" /></td>
															<td rowspan="2" class="edit"><s:textarea cssClass="txt_2"  cols="20" rows="3" name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewSolveDetail" /></td>
															<td class="edit"><s:select  cssClass="txt_1"  size="1" name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewSolveUserId"  list="userList" listKey="userId" listValue="userDispName"/></td>
															<td class="edit">
																<%-- <s:select  disabled="true" size="1" name="addReviewValue.reviewAdmitUserId"  list="userList" listKey="userId" listValue="userDispName"/> --%>
																<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewAdmitUserId"/>&nbsp;
															</td>
															<td colspan="2" rowspan="2" class="edit">
																<s:submit btnId="xx" cssClass="btn_2" name="buttonId" value="確定" action="themeList!doTargetReviewUpdate" onclick="javascript:submitFormWithThemeIdForTargetReview(%{#list.themeId},%{#list2.targetId},%{#list4.reviewId});"/>
																<s:submit btnId="xx" cssClass="btn_2" name="buttonId" value="取消" action="themeList!doReviewList" onclick="javascript:submitFormWithThemeIdForTargetReview(%{#list.themeId},%{#list2.targetId},%{#list4.reviewId});"/>
															</td>
														</tr>
														<tr>
															<td style="border-left: 1px solid #C1DAD7;" class="edit"><s:textfield cssClass="txt_1"  size="7" maxlength="10" name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewExpectDate" /></td>	
															<td colspan="2" class="edit"><s:select  cssClass="txt_1"  size="1" name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewType" list="reviewTypeList" listKey="code" listValue="value"/></td>
															<td class="edit"><s:property value="reviewSolveDate" />&nbsp;<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewSolveDate"/></td>
															<td class="edit"><s:property value="reviewAdmitDate" />&nbsp;<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewAdmitDate"/></td>
														</tr>														
														</s:elseif>	
														<s:elseif test="#list4.mode==2">
														<%-- 対応レイアウト --%>
														<tr>
															<td style="border-left: 1px solid #C1DAD7;" class="edit">
																<s:property value="reviewCreateDate" />
																<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewCreateDate"/>
															</td>
															<td class="edit">
																<s:select  cssClass="txt_0"  disabled="true" size="1" name="addReviewValue.reviewUserId" value="%{#addReviewValue.reviewUserId}" list="userList" listKey="userId" listValue="userDispName"/>
																<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewUserId"/>
															</td>
															<td class="edit">
																<s:property value="reviewCycle" />
																<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewCycle"/>
															</td>
															<td rowspan="2" class="edit">
																<s:property value="reviewDetail" />
																<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewDetail"/>
															</td>
															<td rowspan="2" class="edit"><s:textarea  cssClass="txt_2" cols="24" rows="3" name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewSolveDetail" /></td>
															<td class="edit">
																<s:select cssClass="txt_0"  disabled="true" size="1" name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewSolveUserId"  list="userList" listKey="userId" listValue="userDispName"/>
																<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewSolveUserId"/>
															</td>
															<td class="edit">
																<%-- <s:select  disabled="true" size="1" name="addReviewValue.reviewAdmitUserId"  list="userList" listKey="userId" listValue="userDispName"/> --%>
																<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewAdmitUserId"/>&nbsp;
															</td>
															<td colspan="2" rowspan="2" class="edit">
																<s:submit btnId="xx" cssClass="btn_2" name="buttonId" value="確定" action="themeList!doTargetReviewUpdate" onclick="javascript:submitFormWithThemeIdForTargetReview(%{#list.themeId},%{#list2.targetId},%{#list4.reviewId});"/>
																<s:submit btnId="xx" cssClass="btn_2" name="buttonId" value="取消" action="themeList!doReviewList" onclick="javascript:submitFormWithThemeIdForTargetReview(%{#list.themeId},%{#list2.targetId},%{#list4.reviewId});"/>
															</td>
														</tr>
														<tr>
															<td style="border-left: 1px solid #C1DAD7;" class="edit"><s:textfield cssClass="txt_1"  size="7" maxlength="10" name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewExpectDate" /></td>	
															<td colspan="2" class="edit"><s:select   cssClass="txt_1" size="1" name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewType" list="reviewTypeList" listKey="code" listValue="value"/></td>
															<td class="edit"><s:property value="reviewSolveDate" />&nbsp;<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewSolveDate"/></td>
															<td class="edit"><s:property value="reviewAdmitDate" />&nbsp;<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewAdmitDate"/></td>
														</tr>														
														</s:elseif>																	
														</s:iterator>
														<%-- レビュー追加 --%>
														<s:if test="addMode==3">
														<tr>
															<td style="border-left: 1px solid #C1DAD7;" class="edit"><s:textfield  cssClass="txt_1" size="7" maxlength="10" name="addReviewValue.reviewCreateDate" /></td>
															<td class="edit"><s:select cssClass="txt_1" disabled="true" size="1" name="addReviewValue.reviewUserId" list="userList" listKey="userId" listValue="userDispName"/></td>
															<td class="edit"><s:textfield   cssClass="txt_1" size="4" maxlength="10" name="addReviewValue.reviewCycle" /></td>
															<td rowspan="2" class="edit"><s:textarea  cssClass="txt_2"  cols="48" rows="3" name="addReviewValue.reviewDetail" /></td>
															<td rowspan="2" class="edit"><s:textarea   cssClass="txt_2" cols="24" rows="3" name="addReviewValue.reviewSolveDetail" /></td>
															<td class="edit"><s:select   cssClass="txt_1"  size="1" name="addReviewValue.reviewSolveUserId"  list="userList" listKey="userId" listValue="userDispName"/></td>
															<td class="edit"><%-- <s:select  disabled="true" size="1" name="addReviewValue.reviewAdmitUserId"  list="userList" listKey="userId" listValue="userDispName"/> --%>&nbsp;</td>
															<td colspan="2" rowspan="2" class="edit">
																<s:submit btnId="xx" cssClass="btn_2" name="buttonId" value="登録" action="themeList!doTargetReviewInsert" onclick="javascript:submitFormWithThemeIdForTarget(%{#list.themeId},%{#list2.targetId});"/>
																<s:submit btnId="xx" cssClass="btn_2" name="buttonId" value="取消" action="themeList!doReviewList" onclick="javascript:submitFormWithThemeIdForTargetReview(%{#list.themeId},%{#list2.targetId},%{#list4.reviewId});"/>
															</td>
														</tr>
														<tr>
															<td style="border-left: 1px solid #C1DAD7;" class="edit">
																<s:property value="reviewExpectDate" />
																<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewExpectDate"/>
															</td>	
															<td colspan="2" class="edit">
																<s:select  cssClass="txt_2"  size="1" name="addReviewValue.reviewType" list="reviewTypeList" listKey="code" listValue="value"/>
																
															</td>
															<td class="edit"><s:property value="reviewSolveDate" />&nbsp;</td>
															<td class="edit"><s:property value="reviewAdmitDate" />&nbsp;<s:hidden name="targetList[%{#rowstatus2.index}].reviewList[%{#rowstatus4.index}].reviewAdmitDate"/></td>
														</tr>		
														</s:if>
														
													</table>
												</td>
											</tr>
										</s:if>
										</s:else>		
									</s:iterator>		
									<s:if test="addMode==2">
										<%-- 作業一覧新規モード --%>
										<tr>
											<s:hidden name="targetAddValue.relId"/>
											<td class="sub" ><s:select size="1" name="targetAddValue.targetType" list="targetTypeList" listKey="code" listValue="value"/></td>
											<td class="sub" ><s:textfield size="25" maxlength="100" name="targetAddValue.targetName" /></td>
											<td class="sub" ><s:textfield size="10" maxlength="10" name="targetAddValue.targetStartDt" /></td>
											<td class="sub" ><s:textfield size="10" maxlength="10" name="targetAddValue.targetEndDt" /></td>
											<td class="sub" ><s:select  size="1"name="targetAddValue.targetUserId" list="userList" listKey="userId" listValue="userDispName"/></td>
											<td class="sub" ><s:select  size="1"name="targetAddValue.targetRvUserId" list="userList" listKey="userId" listValue="userDispName"/></td>
											<td class="sub" >0%</td>
											<td class="sub" ><s:textfield size="5" maxlength="5" name="targetAddValue.targetCost1" /></td>
											<td class="sub" ><s:textfield size="5" maxlength="5" name="targetAddValue.targetCost2" /></td>
											<td class="sub" ><s:select  size="1" name="targetAddValue.targetStatus" list="targetStatusList" listKey="code" listValue="value"/></td>
											<td class="sub" >
												<s:submit btnId="B017" cssClass="btn_2" name="buttonId" value="登録" action="themeList!doTargetInsert" onclick="javascript:submitFormWithThemeIdForTarget(%{#list.themeId},%{#list2.targetId});"/>
												<s:submit btnId="B018" cssClass="btn_2" name="buttonId" value="取消" action="themeList!doTargetList" onclick="javascript:submitFormWithThemeId(%{#list.themeId});"/>
											</td>
										</tr>
									</s:if>					
									</table>
								</td>							
							</tr>
						
						</s:if>
					</s:else>
				</s:iterator>
				<s:if test="addMode==1">
					<%-- テーマ一覧新規モード --%>
					<tr>
						<s:hidden name="addValue.projectId"/>
						<td class="edit"><s:textfield size="20" maxlength="50" name="addValue.themeName" /></td>
						<td class="edit"><s:textfield size="10" maxlength="10" name="addValue.themeStartDt"/></td>
						<td class="edit"><s:textfield size="10" maxlength="10" name="addValue.themeEndDt"/></td>
						<td class="edit"><s:select  size="1" name="addValue.themeStatus"  list="themeStatusList" listKey="code" listValue="value"/></td>
						<td class="edit"><s:textfield size="20" maxlength="50" name="addValue.themeInfo"/></td>
						<td class="edit">
							<s:submit btnId="B019"  cssClass="btn_2" name="buttonId" value="登録" action="themeList!doInsert"/>
							<s:submit btnId="B020" cssClass="btn_2" name="buttonId" value="取消" action="themeList!doList" />
						</td>				
					</tr>
				</s:if>
				</table>
			</s:if>
			<s:else>
				<s:if test="addMode==1">
					<%-- テーマ一覧ゼロ件場合の新規モード --%>
					<table class="pol_list" width="100%">
						<tr>
							<th width="20%">テーマ名</th>
							<th width="10%">テーマ開始日</th>
							<th width="10%">テーマ終了日</th>
							<th width="20%">テーマ状態</th>
							<th width="20%">テーマ情報</th>
							<th width="20%">操作</th>
						</tr>
	
						<tr>
							<s:hidden name="addValue.projectId"/>
							<td class="edit"><s:textfield size="20" maxlength="50" name="addValue.themeName" /></td>
							<td class="edit"><s:textfield size="10" maxlength="10" name="addValue.themeStartDt"/></td>
							<td class="edit"><s:textfield size="10" maxlength="10" name="addValue.themeEndDt"/></td>
							<td class="edit"><s:select  size="1" name="addValue.themeStatus"  list="themeStatusList" listKey="code" listValue="value"/></td>
							<td class="edit"><s:textfield size="20" maxlength="50" name="addValue.themeInfo"/></td>
							<td class="edit">
								<s:submit btnId="B019" cssClass="btn_2" name="buttonId" value="登録" action="themeList!doInsert"/>
								<s:submit btnId="B020" cssClass="btn_2" name="buttonId" value="取消" action="themeList!doList" />
							</td>				
						</tr>
					</table>
				</s:if>
				<s:else>
					<s:if test="%{themeList!=null}" >
						No Data!
					</s:if>
				</s:else>
			</s:else>
		
		<table class="pol_list"></table>
	</s:form>
</body>
</html>
